﻿using Pay.TO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Pay.Data {
    /// <summary>
    /// 分佣明细
    /// </summary>
   public  class TokenBillDetail {
        public long Id { get; set; }
        /// <summary>
        /// 分佣id
        /// </summary>
        public long? TokenBillId { get; set; }
        /// <summary>
        /// 分佣类型
        /// </summary>
        public UserType UserType { get; set; }
        /// <summary>
        /// 获得分佣用户
        /// </summary>
        public long MerchantId { get; set; }
        /// <summary>
        /// 邀请人
        /// </summary>
        public long InviteMerchantId { get; set; }
        /// <summary>
        /// 分佣金额
        /// </summary>
        public decimal Commission { get; set; }
        /// <summary>
        /// 分佣比例
        /// </summary>
        public decimal Proportion { get; set; }
        /// <summary>
        /// 是否为业绩收益【 false：分销，true：业绩】
        /// </summary>
        public bool IsBus { get; set; }
        /// <summary>
        /// 业绩来源
        /// </summary>
        public BusType BusType { get; set; }
        /// <summary>
        /// 类型 0：冻结，1：解冻
        /// </summary>
        public int Type { get; set; }
        /// <summary>
        /// 支付id
        /// </summary>
        public long? PayId { get; set; }
        /// <summary>
        /// 是否已确认
        /// </summary>
        public bool IsComfirm { get; set; }
        /// <summary>
        /// 转账凭证
        /// </summary>
        public string TransferVoucher { get; set; }
        /// <summary>
        /// 确认凭证
        /// </summary>
        public string ComfirmTransferVoucher { get; set; }
        /// <summary>
        /// 收款信息
        /// </summary>
        public string ReceivablesInfo { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public long CreateTime { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public long UpdateTime { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
        /// <summary>
        /// 分佣类型
        /// </summary>
        public TokenBillType BillType { get; set; }
        /// <summary>
        /// 账单类型
        /// </summary>
        public BillStatus BillStatus { get; set; }
        /// <summary>
        ///获得分佣用户
        /// </summary>
        public virtual Merchant Merchant { get; set; }
        /// <summary>
        /// 邀请人
        /// </summary>
        public virtual Merchant InviteMerchant { get; set; }
        /// <summary>
        /// 发起分佣
        /// </summary>
        public virtual TokenBill TokenBill { get; set; }
    }
}
